<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page language="java" %>
<%@ page isELIgnored="false"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
    String path = request.getContextPath();
%>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>消息列表</title>
    <link rel="stylesheet" type="text/css" href="<%=path %>/CSS/backMange.css">
    <!-- css资源 -->
    <link rel="stylesheet" type="text/css" href="<%=path %>/easyUI1.4.1/themes/default/easyui.css">
    <!-- 图标资源 -->
    <link rel="stylesheet" type="text/css" href="<%=path %>/easyUI1.4.1/themes/icon.css">
    <!-- 下拉 -->
    <link rel="stylesheet" type="text/css"href="<%=path %>/common/lowSelect/lib/css/htools.select.skin.css">
    <style type="text/css">
        .hideClass{display:none}
        .setFont .textbox .textbox-text{font-size: 15px;padding-left:20px;padding-top:1px;height:30px}/* 微调器字体样式 */
        .datagrid-cell{font-size: 14px}
        .datagrid-cell,
        .datagrid-cell-group,
        .datagrid-header-rownumber,
        .datagrid-cell-rownumber {font-size: 14px;}
        .datagrid-header .datagrid-cell span {font-size: 14px;}

        .seachform li{float:left; margin-right:15px;}
        .scinput1{width:150px; height:26px; border:solid 1px #ced9df;background-color: white;}
        input[type="text"] {background-color: #fff;border-top: solid 1px #a7b5bc;border-left: solid 1px #a7b5bc;border-right: solid 1px #ced9df;border-bottom: solid 1px #ced9df;}
        ul{display:block;margin:0;padding:0;list-style:none;}
        li{display:block;margin:0;padding:0;list-style: none;}
    </style>
    <script type="text/javascript" src="<%=path %>/easyUI1.4.1/jquery.min.js"></script>
    <!-- 下拉 -->
    <script type="text/javascript" src="<%=path %>/common/lowSelect/lib/js/jquery.htools.select.js"></script>
    <!--EasyUI的js包 -->
    <script type="text/javascript"
            src="<%=path %>/easyUI1.4.1/jquery.easyui.min.js"></script>
    <!-- 本地语言 -->
    <script type="text/javascript"
            src="<%=path %>/easyUI1.4.1/locale/easyui-lang-zh_CN.js"></script>

    <script type="text/javascript" src="<%=path %>/common/lowSelect/lib/js/jquery.htools.select.js"></script>

    <script type="text/javascript" src="<%=path%>/My97DatePicker/WdatePicker.js"></script>
    <%@ include file="/WEB-INF/JSP/ajax.jsp"%>
    <script type="text/javascript">

        //IE不支持console对象，此代码仅为测试使用
        ///////////////////////////////////////
        window.console = window.console || (function () {
            var c = {}; c.log = c.warn = c.debug = c.info = c.error = c.time = c.dir = c.profile
                = c.clear = c.exception = c.trace = c.assert = function () { };
            return c;
        })();
        $(document).ready(function () {
            var type = "${type}"
            if (type)
                editAlert()
        })
        $(function(){

            //获取父菜单
            $("#message_list_table").datagrid({
                url:'<%=path %>/DrivingSys/selProcess'+"${company}",  //数据来源
                //冻结列
                columns:[[
                    //{field: 'ck', checkbox: true, width: '30' },  //复选框
                    {field:'fnameL2',title:'流程',width:60,align:'center',sortable :true},
                    {field:'fDesc',title:'内容',width:250,align:'center',sortable :true},
                    {field:'flage',title:'标记',width:250,align:'center',sortable :true},
                    {field:'fid',title:'操作',width:40,align:'center',
                        formatter : function(value, row, index) {
                        return "<div style='cursor: pointer;background-color: #57a0ff; text-align: center;color: #ffffff;width:65px ;margin: auto;' onclick='toURL(\""+row.fid+"\",\""+row.flage+"\")'>设置经办人</div>"
                                //return "<a style='width:58px ;cursor:hand' onclick='toURL(\""+"<%=path%>/DrivingSys"+row.url+"\")'>查看</a>"
                        }
                     }
                ]],
                // width:330,
                //  height:200,
                fitColumns:true,//自适应宽度，占满,不能和冻结列同时设置成true
                fit:true,//充满屏幕
                striped:true,   //斑马线效果
                idField:'fid',    //主键列
                rownumbers:true,            //显示行号
                singleSelect:true,          //是否单选
                //cache:false,				//关闭缓存
                method:'post',
                pagination:true,
                pageList:[10,20,50,100],//每页行数选择列表
                pageSize:20, //设置默认初始的每页行数rows
                pageNumber:1,//设置默认初始的页码page
                remoteSort:true,    //是否服务器端排序，设成false才可以在页面进行排序
                //sortName:'fisAdmin', //指定列名可以进行排序
                multiSort:true ,
                onLoadSuccess:function(){
                    //$('#Pmessage_list_table').datagrid('clearSelections');
                    return false;
                },
                //双击
                onDblClickRow : function(index, row){
                    location.href = '<%=path%>/DrivingSys/selAssginee?fid='+row.fid+'&flag='+row.flage
                    //$('#Pmenu_window_div').window('close');
                },loadMsg:'请稍候...'
            })
        });
    </script>
</head>
<body style=" margin:0px;  overflow:hidden;">
<table id="message_list_table" toolbar="#tb"style="font-size: 14px;">
</table>
<div id="tb"style="background-color: #f5f5f5;">
    <%--<div style="background-color: #fff;border-radius:10px 10px 0 0;padding-top:10px;padding-left:10px">
        <table>
            <tr >
                <td width="180px">
                    <div style="float:left;margin:5px 5px 0 10px ;font-size:14px">消息类型</div>
                    <select id="TYPE_id">
                        <option value="no" selected>全部</option>
                        <option value="2">通知</option>
                        <option value="1">单据</option>
                    </select>
                </td>
                <td width="180px">
                    <div style="float:left;margin:5px 5px 0 10px ;font-size:14px">消息状态</div>
                    <select id="ISLOOK_id">
                        <option value="no" selected>全部</option>
                        <option value="0">未读</option>
                        <option value="1">已读</option>
                    </select>
                </td>
                <td height="44px">

                    &lt;%&ndash;<input class="easyui-datebox" id="search_messageBeginTime"style="width:110px;"
                           data-options="validType:'testDate[\'#search_messageBeginTime\']'">

                    <input class="easyui-datebox" id="search_messageEndTime"style="width:110px;"
                           data-options="validType:'testDate[\'#search_messageEndTime\']'">&ndash;%&gt;
                    <ul class="seachform">
                        <li>
                            <div style="float:left;margin:5px 5px 0 10px ;font-size:14px">开始时间</div>
                            <input class="scinput1"  name="beginTime" type="text" onfocus="WdatePicker({maxDate:'#F{$dp.$D(\'search_messageEndTime\')||\'%y-%M-%d\'}',dateFmt:'yyyy-MM-dd'})"
                                   id="search_messageBeginTime" class="input-text Wdate" style="width:150px;" value="">
                        </li>
                        <li>
                            <div style="float:left;margin:5px 5px 0 10px ;font-size:14px">结束时间</div>
                            <input class="scinput1"  name="endTime" type="text" onfocus="WdatePicker({minDate:'#F{$dp.$D(\'search_messageBeginTime\')}',maxDate:'%y-%M-%d',dateFmt:'yyyy-MM-dd'})"
                                   id="search_messageEndTime" class="input-text Wdate" style="width:150px;"value="">
                        </li>
                    </ul>



                </td>

                <td>
                    <input type="button"value="立即搜索" onclick="doSearch()"
                           style="width:100px;height:32px;outline:none;border:none;background-image: url(<%=path %>/images/myimages/button.jpg) ;background-position:0px -45px;cursor:pointer;color: #fff;border-radius:20px;padding:5px 21px"/>
                </td>
            </tr>
        </table>
    </div>--%>
</div>

</body>
<script>


/*/!*    var $searchTypeSelect = $("#TYPE_id");
    /!**
     * 初始化插件
     *!/
    $searchTypeSelect.goSelectInput({
        height: 30,
        width: 90
    });

    var $searchISLOOKSelect = $("#ISLOOK_id");*!/
    /!**
     * 初始化插件
     *!/
    $searchISLOOKSelect.goSelectInput({
        height: 30,
        width: 90
    });*/


    function toURL(id,flage) {
       location.href = '<%=path%>/DrivingSys/addAssginee?fid='+id+'&flag='+flage
    }


</script>
</html>